//app.js
App({
     data: {
          apiurl: "https://ddk.shzxcx.com",//列表api
     },
  onLaunch: function () {
       wx.getSetting({
            success: (res) => {
                 // 判断res.authSetting是否空对象
                 var obj = res.authSetting
                 // console.log(res.authSetting['scope.userInfo'])
                 if (res.authSetting['scope.userInfo'] == undefined || res.authSetting['scope.userInfo'] == false) {
                      wx.reLaunch({
                           url: '/pages/login/login',
                      })
                 }
            }
       })
     },

})